/*
 * Copyright © 2021 http://www.hn-szzy.com/ All rights reserved.
 */
package com.xjh.service.studyjava.testproxy.staticproxy;

import java.util.HashMap;

/**
 * @author： 徐建华
 * @date： 2022/2/7
 * @description：
 */
public class TestCjlibDynamic {
    public static void main(String[] args) {
        // 目标对象
        RealMovie realMovie = new RealMovie();
        CglibInterceptor cglibInterceptor = new CglibInterceptor(realMovie);
        Movie movie = (Movie) cglibInterceptor.getProxy();
        movie.play();

        HashMap<Object, Object> objectObjectHashMap = new HashMap<>(1);
        objectObjectHashMap.put("1","a");
        objectObjectHashMap.put("2","b");
        objectObjectHashMap.put("3","b");
        objectObjectHashMap.put("4","b");
        objectObjectHashMap.put("5","b");
        objectObjectHashMap.put("53","b");
        objectObjectHashMap.put("523","b");
        objectObjectHashMap.put("532","b");
        objectObjectHashMap.put("511","b");
        System.out.println(objectObjectHashMap.toString());
        System.out.println(objectObjectHashMap.size());


    }

}
